<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-3.7.1.min.js"></script>
</head>
<body>

<button id="sendbtn">发送异步请求</button>

<script>

    var jsonobj = {
        'name': 'zhangsan',
        'age': 80,
        'email': 'zhangsan@gmail.com'
    };

    var s = JSON.stringify(jsonobj);

    console.log(s)


    $("#sendbtn").on('click', function () {
        $.ajax({
            url: 'http://localhost:8080/jquery/msa',
            // data
            type: 'get',
            success: function (data) {
                console.log(data);
            }
        })
    });


</script>
</body>
</html>